<%@ page language="java" contentType="text/html; charset=UTF-8"   pageEncoding="UTF-8"%>
<div class="searchSubcon">
	<div class="listhd">
             	搜索条件:<s:property value="serchText"/>
	</div>
	<div class="listbd">
		<ul>
		
		<s:iterator var="a" value="news" status="st1">
		<li>
		<div class="img">
	<s:if test="#a.contentType=='image'">
		<a  href="<%=path%>/yc/news/ycimgnews!imgnews.do?contentId=<s:property value="#a.contentId"/>"  title="<s:property value="#a.contentTitle"/>"> 
		
		<img height="25px" width="25px" src="<%=path%>/yc/channel/ycchannel!image.do?rid=<s:property value='#a.contentIcon'/>" /> </a></div>
	<a  href='<%=path%>/yc/news/ycimgnews!imgnews.do?contentId=<s:property value='#a.contentId'/>'><s:property value="#a.contentTitle"/></a>
	</s:if>
	<s:else>
		<a  href="<%=path%>/yc/news/ycnews!news.do?contentId=<s:property value="#a.contentId"/>"  title="<s:property value="#a.contentTitle"/>"> 
		<img height="25px" width="25px" src="<%=path%>/yc/channel/ycchannel!image.do?rid=<s:property value='#a.contentIcon'/>" /> </a></div>
	<a  href='<%=path%>/yc/news/ycnews!news.do?contentId=<s:property value='#a.contentId'/>'><s:property value="#a.contentTitle"/></a>
	</s:else>
	<span class="date"><s:property value='#a.createdDate'/></span>
	</li>
	</s:iterator>

		
	</ul>
</div>
<div class="page">
	<ul>
	<li>共查询出&nbsp;<s:property value="pageCtrl.resultCount"/>条&nbsp;</li>
	<li>每页<span style="color:red" ><s:property value="pageCtrl.pageSize"/></span>条</li>&nbsp;&nbsp;
	<li>页次：第<span style="color:red" ><s:property value="pageCtrl.pageNo+1"/></span>页&nbsp;&nbsp;</li>
	<li>共<span style="color:red"><s:property value="pageCtrl.pageCount"/></span>页&nbsp;</li>
          
          <s:if test="pageCtrl.pageNo==0">
          	<li>
          首页&nbsp;&nbsp;
          <li>上页&nbsp;&nbsp;</li>
          </s:if>
          <s:else>
          
                <li><a href="<%=path%>/yc/search!search2.do?serchText=<s:property value="serchText"/>"><span style="color:red">首页</span></a>&nbsp;&nbsp;</li>
                <li><a href="<%=path%>/yc/search!search2.do?serchText=<s:property value="serchText"/>&pageNo=<s:property value="pageCtrl.pageNo-1"/>"><span style="color:red">上页</span></a>&nbsp;&nbsp;</li>
          </s:else>
          <s:if test="pageCtrl.pageCount==0||pageCtrl.pageNo+1==pageCtrl.pageCount">
         	<li> 下页&nbsp;&nbsp;</li>
         	<li>末页&nbsp;&nbsp;</li>
          </s:if>
          <s:else>
         <li> <a href="<%=path%>/yc/search!search2.do?serchText=<s:property value="serchText"/>&pageNo=<s:property value="pageCtrl.pageNo+1"/>"><span style="color:red">下页</span></a>&nbsp;&nbsp;</li>
         <li> <a href="<%=path%>/yc/search!search2.do?serchText=<s:property value="serchText"/>&pageNo=<s:property value="pageCtrl.pageCount-1"/>"><span style="color:red">末页</span></a>&nbsp;&nbsp;</li>
	          </s:else>
		
		</ul>
	</div>
</div>


